Optimal. Leaf size=12 \[ (a-b) \tan ^{-1}(x)+b x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0063076, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {388, 203} \[ (a-b) \tan ^{-1}(x)+b x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 388
Rule 203
Rubi steps
\begin{align*} \int \frac{a+b x^2}{1+x^2} \, dx &=b x-(-a+b) \int \frac{1}{1+x^2} \, dx\\ &=b x+(a-b) \tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0062263, size = 12, normalized size = 1. \[ (a-b) \tan ^{-1}(x)+b x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 14, normalized size = 1.2 \begin{align*} bx+\arctan \left ( x \right ) a-\arctan \left ( x \right ) b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.51263, size = 16, normalized size = 1.33 \begin{align*} b x +{\left (a - b\right )} \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.20739, size = 34, normalized size = 2.83 \begin{align*} b x +{\left (a - b\right )} \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 0.288837, size = 26, normalized size = 2.17 \begin{align*} b x - \frac{i \left (a - b\right ) \log{\left (x - i \right )}}{2} + \frac{i \left (a - b\right ) \log{\left (x + i \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15347, size = 16, normalized size = 1.33 \begin{align*} b x +{\left (a - b\right )} \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]